package com.oauth2.Enum;

public enum ResponseErrorEnum {
	INVALID_REQUEST("invalid_request","The request is missing a parameter so the server can’t proceed with the request"),
	INVALID_CLIENT("invalid_client","Client authentication failed"),
	INVALID_GRANT("invalid_grant","The authorization code (or user’s password for the password grant type) is invalid or expired"),
	INVALID_SCOPE("invalid_scope","invalid scope value in the request"),
	UNAUTHORIZED_CLIENT("unauthorized_client","This client is not authorized to use the requested grant type"),
	UNSUPPORTED_GRANT_TYPE("unsupported_grant_type","unknown grant types"),
	INVALID_TOKEN("invalid_token","Access token invalid or no longer valid");
	private String error;
	private String error_description;
	private ResponseErrorEnum(String error, String error_description) {
		this.error = error;
		this.error_description = error_description;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public String getError_description() {
		return error_description;
	}
	public void setError_description(String error_description) {
		this.error_description = error_description;
	}
	
}
